package com.fudan.cfg.trans;

import java.util.List;
import java.util.Map;

import com.fudan.cfg.base.TransDef;
import com.fudan.run.ctx.annotation.TransAdapter;
@TransAdapter("new_field")
public class NewFieldTransDef extends TransDef {

	private List<Map<String,Object>> fieldList;
	public NewFieldTransDef(String name, String type, String target) {
		super(name, type, target);
	}

	@Override
	public TransDef build(Map<String, Object> configuration) {
		this.fieldList = (List<Map<String, Object>>) configuration.get("field_list");
		return this;
	}

	public List<Map<String, Object>> getFieldList() {
		return fieldList;
	}

	public void setFieldList(List<Map<String, Object>> fieldList) {
		this.fieldList = fieldList;
	}

}
